package net.sx.minemodule.mvp.presenters;

import android.support.v4.app.Fragment;

import com.kedll.library.mvp.BasePresenter;

import net.sx.minemodule.mvp.views.MineOrderView;
import net.sx.minemodule.mvp.fragments.MineOrderFragment;

import java.util.ArrayList;
import java.util.List;

/**
 * 我的订单
 * @author 11470
 */
public class MineOrderPresenter extends BasePresenter<MineOrderView> {

    public MineOrderPresenter(MineOrderView mView) {
        super(mView);
    }

    public void onLoadData() {
        List<Fragment> fragments = new ArrayList<>();
        int count =5;
        for (int i=0;i<count;i++){
            MineOrderFragment orderFragment = new MineOrderFragment();
            fragments.add(orderFragment);
        }

        mView.initViewPager(fragments);
    }


}
